import store from "@/store"
export const authPermission = (value: string) => {
	const { userStore } = store.getState()
	const { userInfo } = userStore
	if (userInfo) {
		const { buttons } = userInfo
		return {
			display: !buttons.includes(value) ? "none" : "block",
		}
	}
}
